package com.waypolice.pojo;

import java.io.Serializable;
import java.util.Date;

public class UpmsSetFile implements Serializable {
    private Integer setId;

    private String pkEname;

    private String pkCname;

    private Integer fileId;

    private Date ctime;

    private Date mtime;

    private String str1;

    private String str2;

    private String str3;

    private String str4;

    private String str5;

    public Integer getSetId() {
        return setId;
    }

    public void setSetId(Integer setId) {
        this.setId = setId;
    }

    public String getPkEname() {
        return pkEname;
    }

    public void setPkEname(String pkEname) {
        this.pkEname = pkEname == null ? null : pkEname.trim();
    }

    public String getPkCname() {
        return pkCname;
    }

    public void setPkCname(String pkCname) {
        this.pkCname = pkCname == null ? null : pkCname.trim();
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getMtime() {
        return mtime;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public String getStr1() {
        return str1;
    }

    public void setStr1(String str1) {
        this.str1 = str1 == null ? null : str1.trim();
    }

    public String getStr2() {
        return str2;
    }

    public void setStr2(String str2) {
        this.str2 = str2 == null ? null : str2.trim();
    }

    public String getStr3() {
        return str3;
    }

    public void setStr3(String str3) {
        this.str3 = str3 == null ? null : str3.trim();
    }

    public String getStr4() {
        return str4;
    }

    public void setStr4(String str4) {
        this.str4 = str4 == null ? null : str4.trim();
    }

    public String getStr5() {
        return str5;
    }

    public void setStr5(String str5) {
        this.str5 = str5 == null ? null : str5.trim();
    }

    @Override
    public String toString() {
        return "UpmsSetFile{" +
                "setId=" + setId +
                ", pkEname='" + pkEname + '\'' +
                ", pkCname='" + pkCname + '\'' +
                ", fileId=" + fileId +
                ", ctime=" + ctime +
                ", mtime=" + mtime +
                ", str1='" + str1 + '\'' +
                ", str2='" + str2 + '\'' +
                ", str3='" + str3 + '\'' +
                ", str4='" + str4 + '\'' +
                ", str5='" + str5 + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof UpmsSetFile)) return false;

        UpmsSetFile that = (UpmsSetFile) o;

        if (setId != null ? !setId.equals(that.setId) : that.setId != null) return false;
        if (pkEname != null ? !pkEname.equals(that.pkEname) : that.pkEname != null) return false;
        if (pkCname != null ? !pkCname.equals(that.pkCname) : that.pkCname != null) return false;
        if (fileId != null ? !fileId.equals(that.fileId) : that.fileId != null) return false;
        if (ctime != null ? !ctime.equals(that.ctime) : that.ctime != null) return false;
        if (mtime != null ? !mtime.equals(that.mtime) : that.mtime != null) return false;
        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
        if (str2 != null ? !str2.equals(that.str2) : that.str2 != null) return false;
        if (str3 != null ? !str3.equals(that.str3) : that.str3 != null) return false;
        if (str4 != null ? !str4.equals(that.str4) : that.str4 != null) return false;
        if (str5 != null ? !str5.equals(that.str5) : that.str5 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = setId != null ? setId.hashCode() : 0;
        result = 31 * result + (pkEname != null ? pkEname.hashCode() : 0);
        result = 31 * result + (pkCname != null ? pkCname.hashCode() : 0);
        result = 31 * result + (fileId != null ? fileId.hashCode() : 0);
        result = 31 * result + (ctime != null ? ctime.hashCode() : 0);
        result = 31 * result + (mtime != null ? mtime.hashCode() : 0);
        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
        result = 31 * result + (str2 != null ? str2.hashCode() : 0);
        result = 31 * result + (str3 != null ? str3.hashCode() : 0);
        result = 31 * result + (str4 != null ? str4.hashCode() : 0);
        result = 31 * result + (str5 != null ? str5.hashCode() : 0);
        return result;
    }
}